package org.cxmzzhl.xyj1510;

public class example06 {
    public static void main(String[] args){
        //创建一个学生对象
        Person student = new Person("小美","学生");
        student.print();
        //创建一位教师
        Person teacher = new Person("夏天","教师","英语");
        teacher.print();
    }
}
